package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

@Setter@Getter
public class EmployeeQueryObject extends QueryObject{

    private String keyword;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;


    private Long currentUserId = -1L;//过滤用户使用的
    public String getKeyword(){

        return StringUtils.hasLength(keyword)? keyword.trim():null;
    }
}
